



const path = require('path')


exports.getSysPkg = function () {
    const sysPkgPath = '../../../package.json'
    return require(sysPkgPath)
}



exports.getPkgByAsarPath = function (asarPath) {
    const pkgPath = path.join(asarPath, "plugin.json")
    return require(pkgPath)
}

exports.getPkgByPluginPath = function (pluginPath) {
    const pkgPath = path.join(pluginPath, "plugin.json")
    return require(pkgPath)
}